/*
 * Project: push-center-service-impl
 * 
 * File Created at 2014-10-9
 * 
 * Copyright 2012 Greenline.com Corporation Limited.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of
 * Greenline Company. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with Greenline.com.
 */
package com.greenline.push.service.core.exception;


/**
 * 往渠道推送消息异常类
 * 
 * @author weirui.shenwr
 * @date 2014-10-9
 * @version V1.0
 */
public class ChannelSendException extends Exception {

	private static final long serialVersionUID = 1L;
	private int code = 0;

	private String message = "";

	public ChannelSendException(String message) {
		super();
		this.message = message;
	}

	public ChannelSendException(int errorCode, String message) {
		super();
		this.code = errorCode;
		this.message = message;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	@Override
	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

}
